﻿<navigation:Page x:Class="LEEAAttendanceControl.Views.SpecificDetails"
           xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
           xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           mc:Ignorable="d"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
           d:DesignWidth="640" d:DesignHeight="480">
    <Grid x:Name="LayoutRoot" DataContext="{Binding}">
        <ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                
                <Grid Background="#404041" Grid.Row="0">
                    <TextBlock x:Name="EmployeeBlock" Text="Employee Details" Foreground="White" FontSize="14"
                               FontWeight="Bold" Margin="5,3,3,2"/>
                </Grid>
                
                <Grid Margin="0,15,0,10" HorizontalAlignment="Center" Grid.Row="1">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>
                    
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="100"/>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="70"/>
                        <ColumnDefinition Width="100"/>
                        <ColumnDefinition Width="Auto"/>
                    </Grid.ColumnDefinitions>
                    
                    <sdk:Label Content="ID:" Grid.Row="0" Grid.Column="0" HorizontalAlignment="Left" Margin="3"
                               VerticalAlignment="Center"/>
                    <TextBox x:Name="CodeBox" Width="170" Grid.Row="0" Grid.Column="1" IsEnabled="False"
                             Margin="3" Background="#FFD4E515" Text="{Binding EmployeeCode}"/>

                    <sdk:Label Content="Birth Date:" Grid.Row="1" Grid.Column="0" HorizontalAlignment="Left"
                               Margin="3,25,3,3" VerticalAlignment="Center"/>
                    <TextBox x:Name="BirthBox" Width="170" Grid.Row="1" Grid.Column="1" IsEnabled="False"
                             Margin="3,25,3,3" Text="{Binding BirthDate, StringFormat='dd/MM/yyyy'}"/>
                    
                    <sdk:Label Content="First Name:" Grid.Row="2" Grid.Column="0" HorizontalAlignment="Left"
                               Margin="3" VerticalAlignment="Center"/>
                    <TextBox x:Name="FirstBox" Width="170" Grid.Row="2" Grid.Column="1" IsEnabled="False"
                             Margin="3" Text="{Binding FirstName}"/>

                    <sdk:Label Content="Last Name:" Grid.Row="2" Grid.Column="3" HorizontalAlignment="Left"
                               Margin="3" VerticalAlignment="Center"/>
                    <TextBox x:Name="LastBox" Width="170" Grid.Row="2" Grid.Column="4" IsEnabled="False"
                             Margin="3" Text="{Binding LastName}"/>
                </Grid>

                <Grid Margin="0,25,0,10" HorizontalAlignment="Center" Grid.Row="2">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>

                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="100"/>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="70"/>
                        <ColumnDefinition Width="100"/>
                        <ColumnDefinition Width="Auto"/>
                    </Grid.ColumnDefinitions>

                    <sdk:Label Content="Hire Date:" Grid.Row="0" Grid.Column="0" HorizontalAlignment="Left"
                               Margin="3" VerticalAlignment="Center"/>
                    <TextBox x:Name="HireBox" Width="170" Grid.Row="0" Grid.Column="1" IsEnabled="False"
                             Margin="3" Text="{Binding EmploymentDate, StringFormat='dd/MM/yyyy'}"/>

                    <sdk:Label Content="Department:" Grid.Row="1" Grid.Column="0" HorizontalAlignment="Left"
                               Margin="3" VerticalAlignment="Center"/>
                    <TextBox x:Name="DepartmentBox" Width="170" Grid.Row="1" Grid.Column="1" IsEnabled="False"
                             Margin="3" Text="{Binding Department.DepartmentID}"/>

                    <sdk:Label Content="Company:" Grid.Row="1" Grid.Column="3" HorizontalAlignment="Left"
                               Margin="3" VerticalAlignment="Center"/>
                    <TextBox x:Name="CompanyBox" Width="170" Grid.Row="1" Grid.Column="4" IsEnabled="False"
                             Margin="3" Text="{Binding Company.CompanyName}"/>
                </Grid>

                <Grid Margin="0,15,0,10" HorizontalAlignment="Center" Grid.Row="3">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>

                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="100"/>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="70"/>
                        <ColumnDefinition Width="100"/>
                        <ColumnDefinition Width="Auto"/>
                    </Grid.ColumnDefinitions>

                    <sdk:Label Content="Address:" Grid.Row="0" Grid.Column="0" HorizontalAlignment="Left"
                               Margin="3" VerticalAlignment="Center"/>
                    <TextBox x:Name="AddressBox" Width="170" Grid.Row="0" Grid.Column="1" IsEnabled="False"
                             Margin="3" Text="{Binding Address}"/>

                    <sdk:Label Content="Phone:" Grid.Row="1" Grid.Column="0" HorizontalAlignment="Left"
                               Margin="3" VerticalAlignment="Center"/>
                    <TextBox x:Name="PhoneBox" Width="170" Grid.Row="1" Grid.Column="1" IsEnabled="False"
                             Margin="3" Text="{Binding Phone}"/>

                    <sdk:Label Content="Mobile:" Grid.Row="1" Grid.Column="3" HorizontalAlignment="Left"
                               Margin="3" VerticalAlignment="Center"/>
                    <TextBox x:Name="MobileBox" Width="170" Grid.Row="1" Grid.Column="4" IsEnabled="False"
                             Margin="3" Text="{Binding Mobile}"/>
                </Grid>

                <Grid Margin="0,15,0,10" HorizontalAlignment="Center" Grid.Row="4">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>

                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="100"/>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="70"/>
                        <ColumnDefinition Width="100"/>
                        <ColumnDefinition Width="Auto"/>
                    </Grid.ColumnDefinitions>

                    <sdk:Label Content="Login" Grid.Row="0" Grid.Column="0" HorizontalAlignment="Left"
                               Margin="3" VerticalAlignment="Center"/>
                    <TextBox x:Name="LoginBox" Width="170" Grid.Row="0" Grid.Column="1" IsEnabled="False"
                             Margin="3" Text="{Binding Login}"/>

                    <sdk:Label Content="Password:" Grid.Row="0" Grid.Column="3" HorizontalAlignment="Left"
                               Margin="3" VerticalAlignment="Center"/>
                    <TextBox x:Name="PasswordBox" Width="170" Grid.Row="0" Grid.Column="4" IsEnabled="False"
                             Margin="3" Text="{Binding Password}"/>

                    <sdk:Label Content="Active" Grid.Row="1" Grid.Column="0" HorizontalAlignment="Left"
                               Margin="3,20,3,3" VerticalAlignment="Center"/>
                    <CheckBox x:Name="ActiveCheck" Grid.Row="1" Grid.Column="1" IsEnabled="False" Margin="3,20,3,3"
                              IsThreeState="False" HorizontalAlignment="Left" IsChecked="{Binding Active}"/>
                </Grid>
            </Grid>
        </ScrollViewer>
    </Grid>
</navigation:Page>
